<?php
include("../config.php");
$ming=$_POST["ming"];//网站名称
$url=$_POST["url"];//网站链接
$jieshao=$_POST["jieshao"];//网站介绍
$user=$_POST["user"];//联系方式
$data = file_get_contents("".$web["tianyi719"]."/admin/youqing/shenhe.php?ming=".$ming."&url=".$url."&jieshao=".$jieshao."&user=".$user."");
$url = json_decode($data, true);
if($url["code"]==1)
{
echo "<script language=\"javascript\">\n";
echo "alert(\"申请成功，请您等待站长审核！\");\n";
echo "top.location=\"../../index.php\"\n";
echo "</script>\n";
}
?>

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title><?php echo $web["ming"]; ?>API - 申请友链</title>
<link rel="icon" href="http://q2.qlogo.cn/headimg_dl?dst_uin=<?php echo $web["qq"]; ?>&spec=5" type="image/ico">
<meta name="keywords" content="<?php echo $web["keywords"]; ?>">
<meta name="description" content="<?php echo $web["description"]; ?>">
<meta name="author" content="yinqi">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/materialdesignicons.min.css" rel="stylesheet">
<link href="css/style.min.css" rel="stylesheet">
</head>

<body>
<!--页面loading end-->
<div class="lyear-layout-web">
  <div class="lyear-layout-container">

<?php require_once("./head.php")?>

    <!--页面主要内容-->
    <main class="lyear-layout-content">
      
      <div class="container-fluid p-t-15">
        
        <div class="row">
          
          <div class="col-lg-12">
            <div class="card">
              <div class="tab-content">
                <div class="tab-pane active">
                  
                  <form action="" method="post" name="edit-form" class="edit-form">
                  

                      <div class="form-group">
                      <label for="web_site_title">网站名称</label>
                      <input class="form-control" type="text" id="ming" name="ming" value="" placeholder="请输入网站名称">
                      </div>

                      <div class="form-group">
                      <label for="web_site_title">网站链接</label>
                      <input class="form-control" type="text" id="url" name="url" value="" placeholder="请输入网站链接">
                      </div>

                      <div class="form-group">
                      <label for="web_site_title">网站介绍</label>
                      <input class="form-control" type="text" id="jieshao" name="jieshao" value="" placeholder="请输入网站介绍">
                      </div>
                  
                      <div class="form-group">
                      <label for="web_site_title">联系方式</label>
                      <input class="form-control" type="text" id="user" name="user" value="" placeholder="请输入联系方式">
                      </div>
                  
                    <div class="form-group">
          <button class="btn btn-block btn-primary"  type="submit" id="pages_login">立即添加</button>
                    </div>
                  </form>
                  
                </div>
              </div>
      
            </div>
          </div>
              
        </div>
        
      </div>
    
    </main>
    <!--End 页面主要内容-->
  </div>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="js/main.min.js"></script>
</body>
</html>